import {otherRequest} from '@/sheep/request';

export default {
	getVipList: (params) =>
		otherRequest({
			url: '/user/api/vip/getList',
			method: 'GET',
			params
		}),
	getMachineList: (params) =>
		otherRequest({
			url: '/user/api/vip/getMachineList',
			method: 'GET',
			params
		}),
	buy: (data) =>
		otherRequest({
			url: '/user/api/vip/createOrder',
			method: 'POST',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
	getHelpList: (params) =>
		otherRequest({
			url: 'pet/help/list',
			method: 'GET',
			params,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	getHelpInfo: (params) =>
		otherRequest({
			url: 'pet/help/detail',
			method: 'GET',
			params,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	getClassList: (params) =>
		otherRequest({
			url: 'pet/lesson/list',
			method: 'GET',
			params
		}),
	getClassInfo: (params) =>
		otherRequest({
			url: 'pet/lesson/detail',
			method: 'GET',
			params
		}),
	// 宠物领养列表
	adoptList: (data) =>
		otherRequest({
			url: '/shop/api/pet/adopt/list',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	// 宠物领养详情
	adoptDetails: (data) =>
		otherRequest({
			url: '/shop/api/pet/adopt/detail',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	// 宠物领养海报
	adoptPoster: (data) =>
		otherRequest({
			url: '/shop/api/pet/adopt/poster',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
	// 宠物领养报名
	adoptApply: (data) =>
		otherRequest({
			url: '/shop/api/pet/adopt/apply',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 宠物相亲列表
	datingList: (data) =>
		otherRequest({
			url: '/shop/api/pet/find/list',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	// 宠物相亲详情
	datingDetails: (data) =>
		otherRequest({
			url: '/shop/api/pet/find/detail',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	// 宠物相亲海报
	datingPoster: (data) =>
		otherRequest({
			url: '/shop/api/pet/find/poster',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
	// 宠物相亲报名
	datingApply: (data) =>
		otherRequest({
			url: '/shop/api/pet/find/apply',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 二手交易列表
	buyList: (data) =>
		otherRequest({
			url: '/shop/api/pet/buy/list',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	// 二手交易详情
	buyDetails: (data) =>
		otherRequest({
			url: '/shop/api/pet/buy/detail',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	// 二手交易海报
	buyPoster: (data) =>
		otherRequest({
			url: '/shop/api/pet/buy/poster',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
	// 二手交易报名
	buyApply: (data) =>
		otherRequest({
			url: '/shop/api/pet/buy/apply',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 活动列表
	activityList: (data) =>
		otherRequest({
			url: '/shop/api/pet/activity/list',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	// 活动详情
	activityDetails: (data) =>
		otherRequest({
			url: '/shop/api/pet/activity/detail',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	// 宠物活动报名
	activityApply: (data) =>
		otherRequest({
			url: '/shop/api/pet/activity/apply',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 宠物活动海报
	activityPoster: (data) =>
		otherRequest({
			url: '/shop/api/pet/activity/poster',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
	// 活动分类
	activityCategory: (data) =>
		otherRequest({
			url: '/shop/api/pet/activity/category',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	getAdoptBanner: (data) =>
		otherRequest({
			url: '/shop/api/pet/activity/banner',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	// 获取宠物品种
	getCategory: (data) =>
		otherRequest({
			url: '/shop/api/pet/record/category',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	// 我的宠物列表
	getMyPet: (data) =>
		otherRequest({
			url: '/shop/api/pet/record/list',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
	// 添加宠物
	addPet: (data) =>
		otherRequest({
			url: '/shop/api/pet/record/add',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	addAdopt: (data) =>
		otherRequest({
			url: '/shop/api/pet/adopt/add',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	applyCall: (data) =>
		otherRequest({
			url: '/shop/api/pet/adopt/apply',
			method: 'get',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 宠物信息
	petDetails: (data) =>
		otherRequest({
			url: '/shop/api/pet/record/details',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
	// 编辑宠物信息
	editPet: (data) =>
		otherRequest({
			url: '/shop/api/pet/record/edit',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 删除宠物信息
	deletePet: (data) =>
		otherRequest({
			url: '/shop/api/pet/record/delete',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	examineState: (data) =>
		otherRequest({
			url: '/shop/api/data/examine',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),

	// 发布评论
	addComment: (data) =>
		otherRequest({
			url: '/shop/api/pet/comment/add',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),

	// 点赞/取消点赞
	praiseComment: (data) =>
		otherRequest({
			url: '/shop/api/pet/comment/praise',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	getExist: (data) =>
		otherRequest({
			url: '/shop/api/companyLog/exist',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	addCompany: (data) =>
		otherRequest({
			url: '/shop/api/companyLog/add',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	deleteComment: (data) =>
		otherRequest({
			url: '/shop/api/pet/comment/delete',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	reportList: (params) =>
		otherRequest({
			url: '/shop/api/pet/record/reportList',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	reportDetails: (params) =>
		otherRequest({
			url: '/shop/api/pet/record/reportDetails',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),

	// 收藏/取消收藏
	praiseCollect: (data) =>
		otherRequest({
			url: '/shop/api/pet/collect/praise',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 活动支付
	activityPay: (data) =>
		otherRequest({
			url: '/shop/api/pet/prepare',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 取消活动
	cancelActivity: (data) =>
		otherRequest({
			url: '/shop/api/pet/cancel',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 我的收益
	myearnings: () =>
		otherRequest({
			url: '/shop/api/pet/my',
			method: 'GET',
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 收益列表
	earningsList: (data) =>
		otherRequest({
			url: '/shop/api/pet/income/list',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 提现
	withdraw: (data) =>
		otherRequest({
			url: '/shop/api/pet/withdraw',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 收益转余额
	transform: (data) =>
		otherRequest({
			url: '/shop/api/pet/transfer',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 搜索
	searchList: (data) =>
		otherRequest({
			url: '/shop/api/pet/activity/searchList',
			method: 'POST',
			data,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),


	// 我的宠物信息列表
	getPetInfo: (data) =>
		otherRequest({
			url: '/shop/api/pet/info/list',
			method: 'GET',
			data,
			custom: {
				showLoading: false,
				auth: true,
			},
		}),
	// 添加宠物信息
	addPetInfo: (data) =>
		otherRequest({
			url: '/shop/api/pet/info/add',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 编辑宠物信息
	editPetInfo: (data) =>
		otherRequest({
			url: '/shop/api/pet/info/edit',
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 删除宠物信息
	deletePetInfo: (data) =>
		otherRequest({
			url: '/shop/api/pet/info/delete',
			method: 'GET',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 品种知识
	getKnowledge: (params) =>
		otherRequest({
			url: '/shop/api/pet/variety',
			method: 'GET',
			params,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 知识详情
	knowledgeInfo: (id) =>
		otherRequest({
			url: `/shop/api/pet/variety/${id}`,
			method: 'GET',
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 记录提现信息 因为现在的提现出问题了 导致记录不到表 需要专门写个接口记录提现信息
	record: (data) =>
		otherRequest({
			url: `/shop/api/pet/draw`,
			method: 'POST',
			data,
			custom: {
				showLoading: true,
				auth: true,
			},
		}),
	// 分类
	class_category:()=>
		otherRequest({
			url: `/shop/api/pet/lesson/informationTags`,
			method: 'GET',
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	nearbyData:()=>
		otherRequest({
			url: `/index/store/nearbyData`,
			method: 'GET',
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	getStore:(params)=>
		otherRequest({
			url: `/device/api/stores/stores/list`,
			method: 'GET',
			params,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),	
	getStoreDetail:	(params)=>
		otherRequest({
			url: `/device/api/stores/stores/details`,
			method: 'GET',
			params,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),	
	getStoreDetailDis:	(params)=>
		otherRequest({
			url: `/device/api/stores/stores/rangelist`,
			method: 'GET',
			params,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	getStoreDetailWash:	(params)=>
		otherRequest({
			url: `/device/api/stores/stores/detailsDevice`,
			method: 'GET',
			params,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	getStoreInfoPay:(params)=>
		otherRequest({
			url: `/device/api/stores/stores/getMachineInfo`,
			method: 'GET',
			params,
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	getCountDownOrder:()=>
		otherRequest({
			url: `/device/api/stores/stores/getPetCleanOrder`,
			method: 'GET',
			custom: {
				showLoading: false,
				auth: false,
			},
		}),
	
};